﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections.ObjectModel;
using System.ComponentModel;




namespace FXnaInfrastructure
{


    /// <summary>
    /// 为需要得到属性变更通知的哥们，提供封装
    /// </summary>
    [Serializable]
    public class PropertyChangedBase:INotifyPropertyChanged
    {
        #region INotifyPropertyChanged Members

        public void OnPropertyChanged(string prop)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(prop));
        }

        [field:NonSerialized]
        public event PropertyChangedEventHandler PropertyChanged;

        #endregion


    }
}
